﻿namespace Commons.Responses
{
    /// <summary>
    /// 带message的返回类型
    /// </summary>
    public class MessageResponse:SingleResponse
    {
        public string? Message { get; set; }
        /// <summary>
        /// 无message并默认成功
        /// </summary>
        public MessageResponse():base()
        {
        }
        /// <summary>
        /// 成功并且带message
        /// </summary>
        /// <param name="message"></param>
        public MessageResponse(string message) : this()
        {
            this.Message = message;
        }
        /// <summary>
        /// code,message,true就是success否则fail
        /// </summary>
        /// <param name="code"></param>
        /// <param name="message"></param>
        /// <param name="b"></param>
        public MessageResponse(int code,string message, bool b):base(code,b)
        {
            this.Message = message;
        }
        public MessageResponse(string message, bool b) : base( b)
        {
            this.Message = message;
        }

    }
}
